package com.movie.model;

import java.io.Serializable;

public class Ticket implements Serializable {
    private String id;
    private String screeningId;
    private int seatNumber;

    public Ticket(String id, String screeningId, int seatNumber) {
        this.id = id;
        this.screeningId = screeningId;
        this.seatNumber = seatNumber;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScreeningId() {
        return screeningId;
    }

    public void setScreeningId(String screeningId) {
        this.screeningId = screeningId;
    }

    public int getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(int seatNumber) {
        this.seatNumber = seatNumber;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "id='" + id + '\'' +
                ", screeningId='" + screeningId + '\'' +
                ", seatNumber=" + seatNumber +
                '}';
    }
}